package com.example.server.common.constant;

/**
 * 消息
 */
public class MsgConstants {

    /**
     * 消息状态
     */
    //已读
    public static int MSG_IS_READ = 1;
    //未读
    public static int MSG_NOT_READ = 0;


    /**
     * 消息类型
     */
    public enum MsgType {
        MSG_SYSTEM(0, "系统消息"),
        MSG_NORMAL(1, "用户消息");
        private int code;
        private String value;

        public int getCode() {
            return code;
        }

        public String getValue() {
            return value;
        }

        MsgType(int code, String value) {
            this.code = code;
            this.value = value;
        }
    }

    /**
     * 消息类型
     */
    public enum MsgPush {
        MSG_NONE(-1, "不推送"),
        MSG_ALL(0, "不限制"),
        MSG_YM(1, "只推友盟"),
        MSG_DX(2, "只推短信");
        private int code;
        private String value;

        public int getCode() {
            return code;
        }

        public String getValue() {
            return value;
        }

        MsgPush(int code, String value) {
            this.code = code;
            this.value = value;
        }
    }


}
